<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<button type="button" v-on:click="addNum">点我自增{{num}}</button>
		</div>
		<script type="text/javascript">
			const app = new Vue({
				el:"#app",
				data() {
					return {
						num:0
					}
				},
				methods:{
					addNum(){
						this.num ++
					}
				}
			})
		</script>
	</body>
</html>
